<script>
  jQuery(document).ready(function() {
		
                        // Image actions menu
			$('ul.imageList li').hover(
				function() { $(this).find('ul').css('display', 'none').slideDown('fast').css('display', 'block'); },
				function() { $(this).find('ul').slideUp('fast'); }
			);
                

});
  
</script>

<ul class="imageList">
<% @images.each do |item| %>
  <li id="image1">
  <img alt="image" width="120" height="80" src="<%= url_for({:controller => 'images', :action => 'thumbnail', :id => item.id, :size => "small"}) %>" />
  <ul>
          <li>
          <a class="" href="#news_body" onclick="insertImage('<%= url_for({:controller => 'images', :action => 'thumbnail', :id => item.id, :size => 'medium'}) %>');">
          Insert</a>
	  <a class="" href="#default_image" onclick="setDefaultImage('<%= item.id %>', '<%= url_for({:controller => "images", :action => 'thumbnail', :id => item.id, :size => "small"}) %>')" >
          Default Image</a>
          </li>
	  
  </ul>
  
  
  
  </li>
<% end %>
</ul>
